package com.hoshiibuy.global.feign;

import com.hoshiibuy.common.rpc.Response;
import com.hoshiibuy.global.feign.hystrix.HystrixPlatformFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:campchen
 * @Date:Created in 下午 02:58 2019/4/29
 * @PACKAGENAME com.hoshiibuy.organization.feign
 * @Description
 */
@FeignClient(name = "hoshiibuy-platform", fallback = HystrixPlatformFeignFallback.class)
public interface PlatformService {
    @GetMapping(value = "/platform/query/{id}")
    Response getById(@PathVariable("id") Long id);
   /* @GetMapping(value = "/platformDepartments/query/")
    Response getPlatformDepartmentsById(@PathVariable("id") Long id);*/
}
